const indexRouters = require('./routes/index')
const homeRouter = require('./routes/home')
const loginRouter = require('./routes/login')
const usersRouter = require('./routes/users')

function UseRouter(app) {
  if (!app) return
  app.use('/', indexRouters);
  app.use('/home', homeRouter);
  app.use('/login', loginRouter);
  app.use('/users', usersRouter);
}

module.exports = UseRouter